<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title></title>
	</head>

	<body>
		<div id="id"></div>
		<script type="text/javascript" src="dist/jquery.js"></script>
		<script type="text/javascript">
			var d1 = $.Deferred();
			var d2 = $.Deferred();
			$.when(d1, d2).done(function(v1, v2) {
				console.log(v1); // "Fish"
				console.log(v2); // "Pizza"
			});
			d1.resolve("Fish");
			d2.resolve("Pizza");
		</script>
	</body>

</html>